package org.scrumfx;

import org.junit.BeforeClass;
import org.scrumfx.business.ProjectBusiness;
import org.scrumfx.dal.ProjectDAL;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringTestBase
{
  protected static ClassPathXmlApplicationContext context;
  protected static ProjectBusiness projectBusiness;
  protected static ProjectDAL projectDAL;

  @BeforeClass
  public static void initTestClass() throws Exception
  {
    context = new ClassPathXmlApplicationContext("applicationContext.xml");
    projectBusiness = (ProjectBusiness) context.getBean("projectBusiness");
    projectDAL = (ProjectDAL) context.getBean("projectDAL");
  }

}
